package com.example.gokuplayalong.bases.base;

import java.util.concurrent.Semaphore;

public class AppParams {

    //            public final String Platform = "window";
    public final String Platform = "linux";
    public String LinuxHomeDir = "/usr/local/gokuplayalong";
    public String WindowHomeDir = "C:\\Users\\33471\\Desktop\\work";
    public String WindowUploadImgDir = "C:\\Users\\33471\\Desktop\\work\\gokuplayalong\\media";
    public String WindowUploadLogDir = "D:\\Tomcat\\apache-tomcat-8.5.99\\webapps\\gokuplayalong\\logs";
    public String LinuxUploadImgDir = "/usr/local/apache-tomcat-9.0.89/webapps/gokuplayalong/media";
    public String LinuxUploadLogDir = "/usr/local/apache-tomcat-9.0.89/webapps/gokuplayalong/logs";
    public String apkPathWindow = "C:\\Users\\33471\\Desktop\\work";
    public String apkPathLinux = LinuxHomeDir + "/apk";
    public String crtsPathLinux = LinuxHomeDir + "/crts";
    public String securityPathLinux = LinuxHomeDir + "/security";

    public String securityPathWindow = WindowHomeDir + "/security";
    public String filesPathLinux = LinuxHomeDir + "/files";
    public String imagesPathLinux = filesPathLinux + "/images";
    public String docPathLinux = filesPathLinux + "/doc";
    public String musicPathLinux = filesPathLinux + "/music";
    public static Semaphore semaphoreBalance = new Semaphore(1);

    public static Semaphore semaphore = new Semaphore(10);

    private static AppParams INSTANCE = null;


    public static AppParams getInstance() {
        if (INSTANCE == null)
            INSTANCE = new AppParams();
        return INSTANCE;
    }
}
